#ifndef Setting_h
#define Setting_h

//屏幕宽
#define Width [UIScreen mainScreen].bounds.size.width
//屏幕高
#define Height [UIScreen mainScreen].bounds.size.height
#define AdaptH(H) Width * H/375.0

//蓝色
#define Blue_Color [UIColor colorWithRed:52/255.0 green:122/255.0 blue:246/255.0 alpha:1]
//灰色
#define Gray_Color [UIColor colorWithRed:248/255.0 green:248/255.0 blue:248/255.0 alpha:1]
//底色 偏白的灰色
#define ColorBack [UIColor colorWithRed:246/256.0 green:246/256.0 blue:246/256.0 alpha:1.0]
//深淡蓝色
#define ColorDLBlue [UIColor colorWithRed:86/255.0 green:160/255.0 blue:233/255.0 alpha:1]


#define cCommonHeaderGrayColor   [UIColor colorWithHex:0xF8F8F8]
#define cCommonRedColor          [UIColor colorWithHex:0xD23023]
#define cCommonLineColor         cCommonRGBColor(229,229,229,1)
#define cCommonRGBColor(red,Green,Blue,Alpha) [UIColor colorWithRed:red/255.0 green:Green/255.0 blue:Blue/255.0 alpha:Alpha]
//蓝色
#define ColorLan [UIColor colorWithRed:66/256.0 green:162/256.0 blue:255/256.0 alpha:1.0]

//MARK: - 用户基本信息

#define SERVICENAME [[NSBundle mainBundle] bundleIdentifier]//bundleid

static NSString * const USERNAME_KEY = @"Username";       //用户名key
static NSString * const Authorization = @"Authorization"; //AccessToken
static NSString * const KEEPLOGIN_KEY = @"KeepLogin";     //登录状态key
static NSString * const ACCESS_TOKEN = @"AccessToken";    //AccessToken
static NSString * const USER_TYPE = @"UserType";          //userType
static NSString * const JOB_KEY = @"JobKey";              //jobKey
static NSString * const StoreNo_KEY = @"StoreNoKey";      //storeNoKey
static NSString * const StoreId_KEY = @"StoreIDKey";      //storeIdKey
static NSString * const kIsLogin_KEY = @"ISLOGIN_KEY";      //是否登录

//MARK: - 审批
static NSInteger const agreeApprove = 210;  //同意审批通过
static NSInteger const refuseApprove = 220; //拒绝审批通过

//MARK: - 计划任务类型
static NSInteger const Meeting_Type = 910;        //会议
static NSInteger const OfficeWork_Type = 920;     //文案
static NSInteger const FewBusiness_Type = 930;    //零星
static NSInteger const VisiteStore_Type = 940;    //巡店
static NSInteger const BusinessTravel_Type = 950; //出差
static NSInteger const Vacation_Type = 960;       //休假


/*
 *  通知中心字段
 */
//首界面的imageView显示
const static NSString * makeFirstInterFaceImageView = @"MakeFirstInterFaceImageView";
const static NSString * notShowButton = @"notShowButton";
const static NSString *HSM_VisitStore_Notice = @"HSM_VisitStore_Notice"; //更新门店拜访


#define Word_Count 50


//#define Complite_Or_Not @"compliteOrNot"//完成状态 完成 或者不完成
#define Complite_Or_Not @"0"//完成状态 完成 或者不完成
#define PictureWidth 620//图片指定尺寸
#define Phone_Services @"prefs:root=CAMERA"//打开拍照功能服务


//-------------------------------------接口
//获取版本接口
#define Get_Edition @"/api/Authorize/GetVersion"
//获取督导下属门店接口
#define GetStors @"/api/Task/GetAllStoreInSupervisor"
//---------------------------------个人界面接口
//获取个人信息
#define GetPersonalInfo @"/api/Personal/Info"
//修改密码
#define Change_Pwd @"/api/Personal/ResetPassword"
//获取报销类型
#define Get_ReimbursementType @"/api/Personal/GetReimbursementType"
//提交报销
#define Post_Reimbursement @"/api/Personal/PostReimbursement"

//-------------------------------拜访计划界面接口
#pragma mark 拜访计划界面接口

//==================巡店反馈接口


//查询巡店反馈状态
#define XDFK @"CtrlFeedBack"
//==================价格月报接口
//获取价格月报
#define Get_MonthPrice @"/api/TaskPlan/GetMonthlyPrice"

//=================================促销员排班
#pragma mark 促销员排班
//获取本月排班信息
#define Get_SchedualInMonth @"/api/Schedual/GetSchedualInMonth"
//获取次月排班申请信息
#define Get_SchedualNextMonth @"/api/Schedual/GetSchedualNextMonth"
//提交排班信息
#define Post_SchedualNextMonth @"/api/Schedual/PostSchedualNextMonth"
//提交次月排班申请信息
#define Update_SchedualNextMonth @"/api/Schedual/UpdateSchedualNextMonth"

//===================================促销员个人界面接口
//工资月份
#define Wage_Month @"/api/Salary/GetSalaryMonth"
//工资详细信息
#define Wage_Interface @"/api/Salary/GetSalary"


//==========================****************************johnson**********************==========================//

//====================================================
//照片宽度
#define PhotoWidth 50
//照片高度
#define PhotoHeight 100
//照片间距
#define PhotoSpace 10

//----------------------------------------------------
#endif /* Setting_h */
